<?php
$path = 'E:\source\ZendFramework-1.9.3\library';
set_include_path(get_include_path(). PATH_SEPARATOR . $path);
//echo get_include_path();
//exit;
//require_once 'Zend/Acl.php';
//require_once 'Zend/Acl/Role.php';
//require_once 'Zend/Acl/Resource.php';
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Acl_Role');
Zend_Loader::loadClass('Zend_Acl');
Zend_Loader::loadClass('Zend_Acl_Resource');

$acl = new Zend_Acl();
$acl->addRole(new Zend_Acl_Role('guest'));
$acl->addRole(new Zend_Acl_Role('member'));
$acl->addRole(new Zend_Acl_Role('admin'));

$parents = array('guest','member', 'admin');
$acl->addRole(new Zend_Acl_Role('someUser'), $parents);

$acl->add(new Zend_Acl_Resource('someResource'));

$acl->deny('guest', 'someResource');
$acl->allow('member', 'someResource');

echo $acl->isAllowed('someUser', 'someResource') ? 'allowed' : 'denyed';


//$configini = new Zend_Config_Ini('config.ini',null,array('skipExtends'	=> true, 'allowModifications'=>true));
//$configini->production->db->hostname = '192.168.1.78';
//$writerIni = new Zend_Config_Writer_Ini(array('config'=>$configini,'filename'=>'config.ini'));
//$writerIni->write();
//var_dump($configini);
?>